import { NEWS_GET } from '../constants'

export default function news(state = [], action) {
  switch (action.type) {
    case NEWS_GET:
      // dispatch({ payload: 后端的数据})
      return action.payload
    default:
      return state
  }
}
